package com.personal.gateway.flinkAllCommand.configurationOption.configurationType;

import com.personal.gateway.flinkAllCommand.configurationOption.ConfigurationOption;

import java.util.List;
import java.util.Map;

/**
 * @author BigHead
 * @date 2022/1/10 16:25
 * @description ConfigurationTypeListMap
 */
public class ConfigurationTypeListMap extends AbstractConfigurationType<List<Map<String, String>>> {
    public ConfigurationTypeListMap() {
        super(
                (Class<List<Map<String, String>>>)
                        (Class<?>) List.class
        );
    }

    @Override
    public String getTypeString() {
        return "List<Map<String,String>> List为,分割 Map为:分割";
    }

    @Override
    public void setValue(List<Map<String, String>> value) {
        this.value = value;
    }

    @SafeVarargs
    @Override
    public final void setExampleValue(List<Map<String, String>>... exampleValue) {
        this.exampleValue = exampleValue;
    }

    @Override
    public List<Map<String, String>>[] getExampleValue(ConfigurationOption<?, ?> configurationOption) {
        return new List[0];
    }
}
